<?
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

//JController::addModelPath(JPATH_ADMINISTRATOR.DS.'components'.DS.$option.DS.'models');

// Include the syndicate functions only once
require_once( dirname(__FILE__).DS.'mod_pbny_summary_helper.php' );

$models = array('venue', 'team', 'season', 'schedule', 'teamgamestat', 'gamestat', 'division');
foreach($models as $model)
	require_once(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_pbny' . DS . 'models' . DS . "$model.php");

// variables needed for the site
$venues = ModPbnySummaryHelper::getVenues();
$teams  = ModPbnySummaryHelper::getTeams();
$weeks  = ModPbnySummaryHelper::getGamesSummaries();
#print_r($weeks);die();
require( JModuleHelper::getLayoutPath( 'mod_pbny_summary' ) );
?>